package cn.lili.modules.payment.wechat.model.profitsharing;

import cn.lili.common.utils.CurrencyUtil;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * 微信分账-接收方
 *
 * @author Bulbasaur
 */
@Data
@Accessors(chain = true)
@NoArgsConstructor
public class Receiver {

    //分账接收方类型
    private String type;

    //分账接收方账号
    private String receiver_account;

    //分账金额
    private int amount;

    //分账描述
    private String description;

    public Receiver(String receiverAccount, Double amount,String description) {
        this.type = "MERCHANT_ID";
        this.receiver_account = receiverAccount;
        this.amount = CurrencyUtil.fen(amount);
        this.description = description;
    }
}
